<%@ Page Language="C#" AutoEventWireup="true"   CodeFile="CustomValidatorPage.aspx.cs" Inherits="CustomValidatorPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        How do you know huukhang.com?<br />
        <asp:Label ID="lblError" runat="server" Width="211px"></asp:Label><br />
        <asp:CheckBoxList ID="chklstSurvey" runat="server" Width="146px">
            <asp:ListItem>Book</asp:ListItem>
            <asp:ListItem>Newspaper</asp:ListItem>
            <asp:ListItem>Internet</asp:ListItem>
            <asp:ListItem>Friend</asp:ListItem>
            <asp:ListItem>Other</asp:ListItem>
        </asp:CheckBoxList>
        <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator"
            OnServerValidate="CustomValidator1_ServerValidate" Width="269px">Please choose at least one of options.</asp:CustomValidator><br />
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="OK" Width="58px" /></div>
    </form>
</body>
</html>
